package org.sith.taskrunner.listeners;

import org.sith.taskrunner.ejb.UserThreadKeeper;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

public class RenderResponseListener implements PhaseListener{


    @Override
    public void afterPhase(PhaseEvent event) {
        UserThreadKeeper.clear();
    }

    @Override
    public void beforePhase(PhaseEvent event) {
    }

    @Override
    public PhaseId getPhaseId() {
        return PhaseId.RENDER_RESPONSE; 
    }
}
